package com.yx.pc.api.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.yx.system.entity.TdBanner;

import java.util.List;
import java.util.Map;

/**
 * Banner
 * Created by wuye on 2017/12/18.
 */
public interface PcTdBannerService {

    int save(TdBanner tdBanner);

    int update(TdBanner tdBanner);

    int deleteByPrimaryKey(Integer id);

    int insert(TdBanner record);

    int insertSelective(TdBanner record);

    TdBanner selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TdBanner record);

    int updateByPrimaryKey(TdBanner record);

    List<TdBanner> findBanner();

    /**
     * 查询书籍列表
     */
    List<TdBanner> queryList(Map<String, Object> map);

    Page<TdBanner> queryPageList(Page<TdBanner> pageUtil, Map<String, Object> map);

    /**
     * 查询总数
     */
    int queryTotal(Map<String, Object> map);
}
